$firstVar = 1;
$secondVar = 1;
$thirdVar = 1;

($thirdVar == 0 ? $firstVar : $secondVar) = 10;

print "$firstVar\n";
print "$secondVar\n";
print "$thirdVar\n";